package com.gzcstec.yien.result;

/**
 * 状态码信息类
 */
public class MsgCode {

    /**状态码**/
    private int code;

    /**错误信息**/
    private String msg;

    public static final MsgCode SUCCESS = new MsgCode(200 , "success");

    public static final MsgCode SYSTEM_ERROR = new MsgCode(500 , "系统运行错误");

    private MsgCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
